package com.gitee.sop.websiteserver.mapper;

import com.gitee.fastmybatis.core.mapper.CrudMapper;
import com.gitee.sop.websiteserver.entity.UserAccount;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * @author admin
 */
public interface UserAccountMapper extends CrudMapper<UserAccount, Long> {

    /**
     * 账号密码登录
     *
     * @param username 用户名
     * @param password 用户密码
     * @return
     */
    @Select("select * from user_account where username = #{username} and password=#{password}")
    UserAccount login(@Param("username") String username, @Param("password") String password);

}
